#include "JTime.h"
#include <time.h>

JTime::JTime(void)
{
}


JTime::~JTime(void)
{
}

std::string JTime::GetFileNameTime()
{
	time_t now;
	struct tm* timeInfo;
	time(&now);
	timeInfo = localtime(&now);
	char buff[200];
	strftime(buff,200,"%Y-%m-%d %H-%M-%S",timeInfo);
	return std::string(buff);
}

std::string JTime::GetNormalTime()
{
	time_t now;
	struct tm* timeInfo;
	time(&now);
	timeInfo = localtime(&now);
	char buff[200];
	strftime(buff,200,"%Y-%m-%d %H:%M:%S",timeInfo);
	return std::string(buff);
}
